package com.vortex.zhsw.demo.controller;

import cn.hutool.core.net.NetUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: luhao
 * @date: 2024/11/23 14:07
 */
@RestController
@RequestMapping("/test")
public class TestController {

    private Logger logger = LoggerFactory.getLogger(TestController.class);

    /**
     * 测试
     *
     * @return
     */
    @GetMapping("/getIpAddress")
    public String getIpAddress() {
        logger.error(NetUtil.getLocalhostStr() + "测试1231");
        return NetUtil.getLocalhostStr() + "test";
    }
}
